package operation;

import book.Book;
import book.BookList;

public class ReturnOperation implements Iop{
    @Override
    public void work(BookList bookList) {
        System.out.println("退出系统");
        int size = bookList.getNum();
        for (int i = 0; i < size; i++) {
            bookList.setBooks(i , null);
        }
        bookList.setNum(0);
        System.exit(0);//退出系统
    }
}
